package com.imooc.course.server.service.impl;

import com.imooc.course.server.dao.TestDao;
import com.imooc.course.server.service.TestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("testService")
public class TestServiceImpl implements TestService {

    @Resource(name = "testDao")
    private TestDao testDao;

    @Override
    public String getTest() {
        return testDao.selectByPrimaryKey("1").toString();
    }
}
